package com.kaishengit.action;

import java.util.List;

import com.kaishengit.pojo.User;
import com.kaishengit.service.UserService;
import com.opensymphony.xwork2.ActionSupport;

public class UserAction extends ActionSupport{

	private static final long serialVersionUID = 1L;

	private UserService userService;
	
	
	
	
	

	private List<User> userlist;
	
	@Override
	public String execute() throws Exception {
		userlist = userService.findAll();
		return SUCCESS;
	}
	
	//get set
	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public List<User> getUserlist() {
		return userlist;
	}

	public void setUserlist(List<User> userlist) {
		this.userlist = userlist;
	}

	public UserService getUserService() {
		return userService;
	}
	
	
	
}
